﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Altairis.FluffyCloud.Data {
    public class Role {
        public const string EveryoneRoleName = @"$Everyone";
        public const string AdministratorsRoleName = @"$Administrators";
        public const string MinorsRoleName = @"$Minors";

        [Key, Required, Display(Name = "Název role"), MaxLength(100, ErrorMessage = "{0} smí mít nejvýše {1} znaků")]
        public string RoleName { get; set; }
                
        [Display(Name="Popis"), MaxLength(50, ErrorMessage="{0} smí mít nejvýše {1} znaků")]
        public string Description { get; set; }

        public virtual ICollection<User> Users { get; set; }
    }
}
